import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import JsonViewer from 'vue-json-viewer';
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "axios"
import moment from "moment"
import 'moment/locale/zh-cn'

axios.defaults.withCredentials = true;

Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(JsonViewer);

Vue.prototype.$moment = moment;

Vue.filter('decimal', function (value) {
  if (!value) return '0.00';
  return value.toFixed(2);
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
